import React, { lazy } from 'react'
import { RouterArr } from '../index'
import LayoutIndex from '@/layouts/index'

const Rights = lazy(() => import('@/pages/Rights/index'))

const rightsRouter: Array<RouterArr> = [
  {
    element: <LayoutIndex />,
    children: [
      {
        path: '/rights',
        element: <Rights />,
        meta: {
          requiresAuth: true,
          title: '权限列表',
          key: 'rights'
        }
      }
    ]
  }
]

export default rightsRouter
